package com.egg.demo.controller.web;


import cn.hutool.core.util.ObjectUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.egg.common.core.model.controller.WebController;
import com.egg.common.util.SmallExcelUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

@Slf4j
@Api(tags = WebController.API_PREFIX + "携程")
@RestController
@RequestMapping("/xiecheng")
public class WebXiechengController extends WebController {

    /*
        城市编码
        [
        {
            "initial":"A",
            "data":[
                {
                    "id":177,
                    "name":"安庆"
                },
                {
                    "id":181,
                    "name":"安阳"
                },
                {
                    "id":178,
                    "name":"鞍山"
                },
                {
                    "id":179,
                    "name":"安顺"
                },
                {
                    "id":171,
                    "name":"安康"
                }
            ]
        },
        {
            "initial":"B",
            "data":[
                {
                    "id":1,
                    "name":"北京"
                },
                {
                    "id":1820,
                    "name":"滨州"
                },
                {
                    "id":1140,
                    "name":"百色"
                },
                {
                    "id":182,
                    "name":"蚌埠"
                },
                {
                    "id":112,
                    "name":"宝鸡"
                },
                {
                    "id":22031,
                    "name":"毕节"
                },
                {
                    "id":185,
                    "name":"保定"
                },
                {
                    "id":1155,
                    "name":"本溪"
                },
                {
                    "id":1078,
                    "name":"亳州"
                },
                {
                    "id":197,
                    "name":"保山"
                },
                {
                    "id":21025,
                    "name":"白沙"
                },
                {
                    "id":54,
                    "name":"保亭"
                },
                {
                    "id":189,
                    "name":"北海"
                }
            ]
        },
        {
            "initial":"C",
            "data":[
                {
                    "id":28,
                    "name":"成都"
                },
                {
                    "id":213,
                    "name":"常州"
                },
                {
                    "id":201,
                    "name":"常德"
                },
                {
                    "id":206,
                    "name":"长沙"
                },
                {
                    "id":4,
                    "name":"重庆"
                },
                {
                    "id":612,
                    "name":"郴州"
                },
                {
                    "id":137,
                    "name":"长治"
                },
                {
                    "id":214,
                    "name":"滁州"
                },
                {
                    "id":211,
                    "name":"朝阳"
                },
                {
                    "id":562,
                    "name":"承德"
                },
                {
                    "id":216,
                    "name":"沧州"
                },
                {
                    "id":218,
                    "name":"池州"
                },
                {
                    "id":21658,
                    "name":"楚雄"
                },
                {
                    "id":56,
                    "name":"昌江"
                },
                {
                    "id":20836,
                    "name":"澄迈"
                },
                {
                    "id":215,
                    "name":"潮州"
                }
            ]
        },
        {
            "initial":"D",
            "data":[
                {
                    "id":236,
                    "name":"东营"
                },
                {
                    "id":237,
                    "name":"德阳"
                },
                {
                    "id":36,
                    "name":"大理市"
                },
                {
                    "id":1233,
                    "name":"达州"
                },
                {
                    "id":223,
                    "name":"东莞"
                },
                {
                    "id":1370,
                    "name":"德州"
                },
                {
                    "id":136,
                    "name":"大同"
                },
                {
                    "id":6,
                    "name":"大连"
                },
                {
                    "id":221,
                    "name":"丹东"
                },
                {
                    "id":93,
                    "name":"迪庆"
                },
                {
                    "id":365,
                    "name":"德宏"
                },
                {
                    "id":50,
                    "name":"定安"
                },
                {
                    "id":48,
                    "name":"东方"
                },
                {
                    "id":57,
                    "name":"儋州"
                }
            ]
        },
        {
            "initial":"E",
            "data":[
                {
                    "id":245,
                    "name":"恩施"
                },
                {
                    "id":992,
                    "name":"鄂州"
                }
            ]
        },
        {
            "initial":"F",
            "data":[
                {
                    "id":251,
                    "name":"佛山"
                },
                {
                    "id":258,
                    "name":"福州"
                },
                {
                    "id":254,
                    "name":"阜新"
                },
                {
                    "id":252,
                    "name":"抚顺"
                },
                {
                    "id":257,
                    "name":"阜阳"
                },
                {
                    "id":3884,
                    "name":"抚州"
                }
            ]
        },
        {
            "initial":"G",
            "data":[
                {
                    "id":32,
                    "name":"广州"
                },
                {
                    "id":38,
                    "name":"贵阳"
                },
                {
                    "id":33,
                    "name":"桂林"
                },
                {
                    "id":1518,
                    "name":"贵港"
                },
                {
                    "id":268,
                    "name":"赣州"
                },
                {
                    "id":1100,
                    "name":"广安"
                }
            ]
        },
        {
            "initial":"H",
            "data":[
                {
                    "id":577,
                    "name":"淮安"
                },
                {
                    "id":17,
                    "name":"杭州"
                },
                {
                    "id":86,
                    "name":"湖州"
                },
                {
                    "id":278,
                    "name":"合肥"
                },
                {
                    "id":1074,
                    "name":"菏泽"
                },
                {
                    "id":23,
                    "name":"黄山"
                },
                {
                    "id":287,
                    "name":"淮南"
                },
                {
                    "id":3969,
                    "name":"河池"
                },
                {
                    "id":292,
                    "name":"黄石"
                },
                {
                    "id":272,
                    "name":"淮北"
                },
                {
                    "id":297,
                    "name":"衡阳"
                },
                {
                    "id":1050,
                    "name":"葫芦岛"
                },
                {
                    "id":129,
                    "name":"汉中"
                },
                {
                    "id":275,
                    "name":"邯郸"
                },
                {
                    "id":1341,
                    "name":"红河"
                },
                {
                    "id":951,
                    "name":"鹤壁"
                },
                {
                    "id":290,
                    "name":"衡水"
                },
                {
                    "id":5,
                    "name":"哈尔滨"
                },
                {
                    "id":693,
                    "name":"河源"
                },
                {
                    "id":299,
                    "name":"惠州"
                },
                {
                    "id":42,
                    "name":"海口"
                },
                {
                    "id":3885,
                    "name":"黄冈"
                },
                {
                    "id":282,
                    "name":"怀化"
                }
            ]
        },
        {
            "initial":"I",
            "data":[

            ]
        },
        {
            "initial":"J",
            "data":[
                {
                    "id":144,
                    "name":"济南"
                },
                {
                    "id":24,
                    "name":"九江"
                },
                {
                    "id":571,
                    "name":"嘉兴"
                },
                {
                    "id":316,
                    "name":"江门"
                },
                {
                    "id":308,
                    "name":"金华"
                },
                {
                    "id":1453,
                    "name":"晋中"
                },
                {
                    "id":1092,
                    "name":"晋城"
                },
                {
                    "id":318,
                    "name":"济宁"
                },
                {
                    "id":933,
                    "name":"吉安"
                },
                {
                    "id":328,
                    "name":"荆州"
                },
                {
                    "id":327,
                    "name":"锦州"
                },
                {
                    "id":1121,
                    "name":"荆门"
                },
                {
                    "id":305,
                    "name":"景德镇"
                },
                {
                    "id":956,
                    "name":"揭阳"
                },
                {
                    "id":1093,
                    "name":"焦作"
                },
                {
                    "id":1454,
                    "name":"济源"
                }
            ]
        },
        {
            "initial":"K",
            "data":[
                {
                    "id":34,
                    "name":"昆明"
                },
                {
                    "id":331,
                    "name":"开封"
                }
            ]
        },
        {
            "initial":"L",
            "data":[
                {
                    "id":1088,
                    "name":"漯河"
                },
                {
                    "id":139,
                    "name":"临汾"
                },
                {
                    "id":350,
                    "name":"洛阳"
                },
                {
                    "id":918,
                    "name":"娄底"
                },
                {
                    "id":605,
                    "name":"六盘水"
                },
                {
                    "id":353,
                    "name":"连云港"
                },
                {
                    "id":569,
                    "name":"临沂"
                },
                {
                    "id":354,
                    "name":"柳州"
                },
                {
                    "id":351,
                    "name":"辽阳"
                },
                {
                    "id":1236,
                    "name":"临沧"
                },
                {
                    "id":348,
                    "name":"龙岩"
                },
                {
                    "id":355,
                    "name":"泸州"
                },
                {
                    "id":7537,
                    "name":"凉山"
                },
                {
                    "id":340,
                    "name":"廊坊"
                },
                {
                    "id":346,
                    "name":"丽水"
                },
                {
                    "id":1071,
                    "name":"聊城"
                },
                {
                    "id":7631,
                    "name":"吕梁"
                },
                {
                    "id":1705,
                    "name":"六安"
                },
                {
                    "id":37,
                    "name":"丽江"
                },
                {
                    "id":55,
                    "name":"陵水"
                },
                {
                    "id":49,
                    "name":"乐东"
                },
                {
                    "id":20868,
                    "name":"临高"
                },
                {
                    "id":100,
                    "name":"兰州"
                }
            ]
        },
        {
            "initial":"M",
            "data":[
                {
                    "id":1024,
                    "name":"马鞍山"
                },
                {
                    "id":370,
                    "name":"绵阳"
                },
                {
                    "id":1148,
                    "name":"眉山"
                },
                {
                    "id":3053,
                    "name":"梅州"
                },
                {
                    "id":1105,
                    "name":"茂名"
                }
            ]
        },
        {
            "initial":"N",
            "data":[
                {
                    "id":12,
                    "name":"南京"
                },
                {
                    "id":82,
                    "name":"南通"
                },
                {
                    "id":375,
                    "name":"宁波"
                },
                {
                    "id":376,
                    "name":"南昌"
                },
                {
                    "id":1597,
                    "name":"内江"
                },
                {
                    "id":380,
                    "name":"南宁"
                },
                {
                    "id":377,
                    "name":"南充"
                },
                {
                    "id":606,
                    "name":"南平"
                },
                {
                    "id":385,
                    "name":"南阳"
                },
                {
                    "id":378,
                    "name":"宁德"
                },
                {
                    "id":1806,
                    "name":"怒江"
                }
            ]
        },
        {
            "initial":"O",
            "data":[

            ]
        },
        {
            "initial":"P",
            "data":[
                {
                    "id":3222,
                    "name":"平顶山"
                },
                {
                    "id":1232,
                    "name":"濮阳"
                },
                {
                    "id":387,
                    "name":"盘锦"
                },
                {
                    "id":1840,
                    "name":"萍乡"
                },
                {
                    "id":1097,
                    "name":"攀枝花"
                },
                {
                    "id":667,
                    "name":"莆田"
                },
                {
                    "id":3996,
                    "name":"普洱"
                }
            ]
        },
        {
            "initial":"Q",
            "data":[
                {
                    "id":7,
                    "name":"青岛"
                },
                {
                    "id":21179,
                    "name":"黔南"
                },
                {
                    "id":407,
                    "name":"衢州"
                },
                {
                    "id":21613,
                    "name":"黔西南"
                },
                {
                    "id":406,
                    "name":"泉州"
                },
                {
                    "id":147,
                    "name":"秦皇岛"
                },
                {
                    "id":1422,
                    "name":"清远"
                },
                {
                    "id":1899,
                    "name":"钦州"
                },
                {
                    "id":985,
                    "name":"曲靖"
                },
                {
                    "id":21778,
                    "name":"黔东南"
                },
                {
                    "id":52,
                    "name":"琼海"
                },
                {
                    "id":53,
                    "name":"琼中"
                }
            ]
        },
        {
            "initial":"R",
            "data":[
                {
                    "id":1106,
                    "name":"日照"
                }
            ]
        },
        {
            "initial":"S",
            "data":[
                {
                    "id":22,
                    "name":"绍兴"
                },
                {
                    "id":411,
                    "name":"上饶"
                },
                {
                    "id":2,
                    "name":"上海"
                },
                {
                    "id":14,
                    "name":"苏州"
                },
                {
                    "id":30,
                    "name":"深圳"
                },
                {
                    "id":1111,
                    "name":"邵阳"
                },
                {
                    "id":1472,
                    "name":"宿迁"
                },
                {
                    "id":452,
                    "name":"十堰"
                },
                {
                    "id":451,
                    "name":"沈阳"
                },
                {
                    "id":441,
                    "name":"商丘"
                },
                {
                    "id":1371,
                    "name":"遂宁"
                },
                {
                    "id":428,
                    "name":"石家庄"
                },
                {
                    "id":447,
                    "name":"汕头"
                },
                {
                    "id":521,
                    "name":"宿州"
                },
                {
                    "id":1117,
                    "name":"随州"
                },
                {
                    "id":1317,
                    "name":"朔州"
                },
                {
                    "id":437,
                    "name":"三明"
                },
                {
                    "id":422,
                    "name":"韶关"
                },
                {
                    "id":43,
                    "name":"三亚"
                },
                {
                    "id":1436,
                    "name":"汕尾"
                },
                {
                    "id":78689,
                    "name":"三沙"
                },
                {
                    "id":436,
                    "name":"三门峡"
                },
                {
                    "id":90016,
                    "name":"索莱拉"
                },
                {
                    "id":90021,
                    "name":"萨尔塔哈达"
                }
            ]
        },
        {
            "initial":"T",
            "data":[
                {
                    "id":454,
                    "name":"泰安"
                },
                {
                    "id":579,
                    "name":"泰州"
                },
                {
                    "id":105,
                    "name":"太原"
                },
                {
                    "id":3,
                    "name":"天津"
                },
                {
                    "id":22033,
                    "name":"铜仁"
                },
                {
                    "id":459,
                    "name":"铜陵"
                },
                {
                    "id":578,
                    "name":"台州"
                },
                {
                    "id":1048,
                    "name":"铁岭"
                },
                {
                    "id":468,
                    "name":"唐山"
                },
                {
                    "id":47,
                    "name":"屯昌"
                },
                {
                    "id":3920,
                    "name":"天门"
                }
            ]
        },
        {
            "initial":"U",
            "data":[
                {
                    "id":90005,
                    "name":"乌尔迪亚因"
                }
            ]
        },
        {
            "initial":"V",
            "data":[

            ]
        },
        {
            "initial":"W",
            "data":[
                {
                    "id":478,
                    "name":"芜湖"
                },
                {
                    "id":477,
                    "name":"武汉"
                },
                {
                    "id":491,
                    "name":"温州"
                },
                {
                    "id":13,
                    "name":"无锡"
                },
                {
                    "id":479,
                    "name":"威海"
                },
                {
                    "id":475,
                    "name":"潍坊"
                },
                {
                    "id":492,
                    "name":"梧州"
                },
                {
                    "id":1030,
                    "name":"渭南"
                },
                {
                    "id":20963,
                    "name":"文山"
                },
                {
                    "id":46,
                    "name":"五指山"
                },
                {
                    "id":44,
                    "name":"文昌"
                },
                {
                    "id":45,
                    "name":"万宁"
                }
            ]
        },
        {
            "initial":"X",
            "data":[
                {
                    "id":10,
                    "name":"西安"
                },
                {
                    "id":512,
                    "name":"徐州"
                },
                {
                    "id":1006,
                    "name":"宣城"
                },
                {
                    "id":513,
                    "name":"忻州"
                },
                {
                    "id":1490,
                    "name":"孝感"
                },
                {
                    "id":603,
                    "name":"新余"
                },
                {
                    "id":510,
                    "name":"信阳"
                },
                {
                    "id":496,
                    "name":"襄阳"
                },
                {
                    "id":35,
                    "name":"西双版纳"
                },
                {
                    "id":3910,
                    "name":"湘西"
                },
                {
                    "id":937,
                    "name":"咸宁"
                },
                {
                    "id":25,
                    "name":"厦门"
                },
                {
                    "id":507,
                    "name":"新乡"
                },
                {
                    "id":1094,
                    "name":"许昌"
                },
                {
                    "id":947,
                    "name":"邢台"
                },
                {
                    "id":598,
                    "name":"湘潭"
                },
                {
                    "id":111,
                    "name":"咸阳"
                },
                {
                    "id":1882,
                    "name":"仙桃"
                },
                {
                    "id":7740,
                    "name":"襄樊"
                }
            ]
        },
        {
            "initial":"Y",
            "data":[
                {
                    "id":15,
                    "name":"扬州"
                },
                {
                    "id":186,
                    "name":"玉溪"
                },
                {
                    "id":515,
                    "name":"宜昌"
                },
                {
                    "id":3933,
                    "name":"云浮"
                },
                {
                    "id":518,
                    "name":"宜春"
                },
                {
                    "id":3277,
                    "name":"雅安"
                },
                {
                    "id":527,
                    "name":"榆林"
                },
                {
                    "id":539,
                    "name":"岳阳"
                },
                {
                    "id":1300,
                    "name":"营口"
                },
                {
                    "id":1200,
                    "name":"盐城"
                },
                {
                    "id":692,
                    "name":"阳江"
                },
                {
                    "id":140,
                    "name":"运城"
                },
                {
                    "id":907,
                    "name":"阳泉"
                },
                {
                    "id":534,
                    "name":"鹰潭"
                },
                {
                    "id":533,
                    "name":"烟台"
                },
                {
                    "id":99,
                    "name":"银川"
                },
                {
                    "id":970,
                    "name":"永州"
                },
                {
                    "id":1125,
                    "name":"益阳"
                }
            ]
        },
        {
            "initial":"Z",
            "data":[
                {
                    "id":559,
                    "name":"郑州"
                },
                {
                    "id":551,
                    "name":"驻马店"
                },
                {
                    "id":16,
                    "name":"镇江"
                },
                {
                    "id":31,
                    "name":"珠海"
                },
                {
                    "id":27,
                    "name":"张家界"
                },
                {
                    "id":601,
                    "name":"株洲"
                },
                {
                    "id":555,
                    "name":"昭通"
                },
                {
                    "id":553,
                    "name":"中山"
                },
                {
                    "id":614,
                    "name":"枣庄"
                },
                {
                    "id":542,
                    "name":"淄博"
                },
                {
                    "id":560,
                    "name":"漳州"
                },
                {
                    "id":3221,
                    "name":"周口"
                },
                {
                    "id":558,
                    "name":"遵义"
                },
                {
                    "id":547,
                    "name":"湛江"
                },
                {
                    "id":552,
                    "name":"肇庆"
                },
                {
                    "id":550,
                    "name":"张家口"
                },
                {
                    "id":1560,
                    "name":"资阳"
                },
                {
                    "id":544,
                    "name":"自贡"
                }
            ]
        }
    ]
     */

    /*
        返回数据体

        {
    "switchNew":"T",
    "personRecommend":true,
    "defaultStore":{
        "storeTagList":[
            "人气推荐",
            "澳洲专家",
            "畅游日韩",
            "东南亚"
        ],
        "storeLevel":6,
        "address":"西直门凯德MALL T2 18C7",
        "sortIndex":968,
        "isDestinationStore":0,
        "telephone":"4008663333,0715178",
        "imgTag":"综合排序",
        "storeId":188,
        "serviceTime":[
            {
                "timeEnd":"18:00:00",
                "dayOfWeek":[
                    1,
                    1,
                    1,
                    1,
                    1,
                    1,
                    1
                ],
                "timeStart":"09:00:00"
            }
        ],
        "sortScore":834.6,
        "isLoginUserFavorite":false,
        "imgUrl":"https://dimg04.c-ctrip.com/images/30090o000000fhlgiCD39_C_100_100.jpg",
        "cityName":"北京",
        "areaName":"西城区",
        "storeName":"北京西城区西直门外店",
        "storeTDSId":"19519"
    },
    "bannerList":[

    ],
    "ResponseStatus":{
        "Extension":[
            {
                "Value":"7829824140952986606",
                "Id":"CLOGGING_TRACE_ID"
            },
            {
                "Value":"100025527-0a3c7c05-465367-2200088",
                "Id":"RootMessageId"
            }
        ],
        "Errors":[

        ],
        "Ack":"Success",
        "Timestamp":"/Date(1675322620481+0800)/"
    },
    "sortType":1,
    "areaList":[
        {
            "name":"密云区",
            "id":103
        },
        {
            "name":"门头沟区",
            "id":130
        },
        {
            "name":"怀柔区",
            "id":102
        },
        {
            "name":"平谷区",
            "id":106
        },
        {
            "name":"朝阳区",
            "id":94
        },
        {
            "name":"石景山区",
            "id":97
        },
        {
            "name":"西城区",
            "id":92
        },
        {
            "name":"延庆区",
            "id":109
        },
        {
            "name":"丰台区",
            "id":101
        },
        {
            "name":"通州区",
            "id":108
        },
        {
            "name":"顺义区",
            "id":98
        },
        {
            "name":"房山区",
            "id":95
        },
        {
            "name":"东城区",
            "id":93
        },
        {
            "name":"昌平区",
            "id":104
        },
        {
            "name":"海淀区",
            "id":96
        },
        {
            "name":"大兴区",
            "id":105
        }
    ],
    "storeList":[
        {
            "storeTagList":[
                "畅游日韩",
                "东南亚",
                "畅游国内",
                "免费停车"
            ],
            "storeLevel":3,
            "address":"常营南路50号院5号楼1层",
            "sortIndex":999,
            "isDestinationStore":0,
            "telephone":"4008663333,0715008",
            "storeId":13,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":802.3,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/30030m000000dox2k699A_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"朝阳区",
            "storeName":"北京朝阳区常营店",
            "storeTDSId":"19862"
        },
        {
            "storeTagList":[
                "日韩专家",
                "东南亚",
                "畅游国内"
            ],
            "storeLevel":4,
            "address":"冰窖口胡同1号院1号楼1-16",
            "sortIndex":876,
            "isDestinationStore":0,
            "telephone":"4008663333,0715014",
            "storeId":19,
            "serviceTime":[
                {
                    "timeEnd":"20:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        0,
                        0
                    ],
                    "timeStart":"10:00:00"
                },
                {
                    "timeEnd":"20:30:00",
                    "dayOfWeek":[
                        0,
                        0,
                        0,
                        0,
                        0,
                        1,
                        1
                    ],
                    "timeStart":"09:30:00"
                }
            ],
            "sortScore":737.5,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/0300h120006ojk7suFDE5_C_100_100.png",
            "cityName":"北京",
            "areaName":"西城区",
            "storeName":"北京西城区德胜门店",
            "storeTDSId":"19209"
        },
        {
            "storeTagList":[
                "人气推荐",
                "欧洲专家",
                "日韩专家",
                "东南亚"
            ],
            "storeLevel":6,
            "address":"望京利泽西园113号楼底商",
            "sortIndex":835,
            "isDestinationStore":0,
            "telephone":"4008663333,0715017",
            "storeId":22,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":727.8,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300t0l000000d5zdn8E55_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"朝阳区",
            "storeName":"北京朝阳区广顺北大街店",
            "storeTDSId":"19197"
        },
        {
            "storeTagList":[
                "定制专家",
                "澳洲专家",
                "畅游欧洲",
                "畅游日韩"
            ],
            "storeLevel":5,
            "address":"北甲地路15号院3号楼1层5单元106",
            "sortIndex":786,
            "isDestinationStore":0,
            "telephone":"4008663333,0715915",
            "storeId":982,
            "serviceTime":[
                {
                    "timeEnd":"19:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"10:00:00"
                }
            ],
            "sortScore":673.9,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/30070y000000mc1ebB5BF_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"丰台区",
            "storeName":"北京丰台区草桥店",
            "storeTDSId":"30212"
        },
        {
            "storeTagList":[
                "人气推荐",
                "东南亚",
                "畅游国内",
                "自由行专家"
            ],
            "storeLevel":5,
            "address":"府学路3号底商109室",
            "sortIndex":778,
            "isDestinationStore":0,
            "telephone":"4008663333,0715740",
            "storeId":801,
            "serviceTime":[
                {
                    "timeEnd":"19:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":668.9,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/03029120008ako4feABDC_C_100_100.png",
            "cityName":"北京",
            "areaName":"昌平区",
            "storeName":"北京昌平区府学路门店",
            "storeTDSId":"28794"
        },
        {
            "storeTagList":[
                "人气推荐",
                "日韩专家",
                "东南亚",
                "畅游国内"
            ],
            "storeLevel":5,
            "address":"劲松南路劲松五区512号楼一层底商携程旅游",
            "sortIndex":777,
            "isDestinationStore":0,
            "telephone":"4008663333,0715747",
            "storeId":808,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":668.5,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/30080v000000jza5i0A79_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"朝阳区",
            "storeName":"北京朝阳区劲松店",
            "storeTDSId":"20037"
        },
        {
            "storeTagList":[
                "人气推荐",
                "畅游欧洲",
                "畅游日韩",
                "东南亚"
            ],
            "storeLevel":5,
            "address":"龙岗路69号物美超市一层2A001",
            "sortIndex":746,
            "isDestinationStore":0,
            "telephone":"4008663333,0715814",
            "storeId":876,
            "serviceTime":[
                {
                    "timeEnd":"20:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"10:00:00"
                }
            ],
            "sortScore":642.7,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300v0x000000leb8b319B_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"海淀区",
            "storeName":"北京海淀区龙岗路店",
            "storeTDSId":"25714"
        },
        {
            "storeTagList":[
                "畅游欧洲",
                "日韩专家",
                "2022Trip优秀门店"
            ],
            "storeLevel":4,
            "address":"西直门内大街桦皮厂3号工贸写字楼一层",
            "sortIndex":697,
            "isDestinationStore":0,
            "telephone":"4008663333,0715011",
            "storeId":16,
            "serviceTime":[
                {
                    "timeEnd":"20:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"10:00:00"
                }
            ],
            "sortScore":594.6,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300m0l000000ddp921573_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"西城区",
            "storeName":"北京西城区西直门内店",
            "storeTDSId":"19492"
        },
        {
            "storeTagList":[
                "美洲专家"
            ],
            "storeLevel":5,
            "address":"西北旺镇友谊路115号院1号楼（创辉超市结账口对面携程旅游）",
            "sortIndex":651,
            "isDestinationStore":0,
            "telephone":"4008663333,0715495",
            "storeId":550,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":567.5,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/030551200088ihwq8AE9F_C_100_100.png",
            "cityName":"北京",
            "areaName":"海淀区",
            "storeName":"北京海淀区友谊路店",
            "storeTDSId":"24884"
        },
        {
            "storeTagList":[
                "澳洲专家",
                "美洲专家",
                "日韩专家",
                "东南亚",
                "畅游国内"
            ],
            "storeLevel":4,
            "address":"白云路6号云起时珍宝花园AB1-8室 携程旅游",
            "sortIndex":666,
            "isDestinationStore":0,
            "telephone":"4008663333,0716685",
            "storeId":1755,
            "serviceTime":[
                {
                    "timeEnd":"19:30:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:30:00"
                }
            ],
            "sortScore":567.3,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300e160000010dqtjBCBE_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"西城区",
            "storeName":"北京西城区白云路店",
            "storeTDSId":"34730"
        },
        {
            "storeTagList":[
                "欧洲专家",
                "日韩专家",
                "东南亚",
                "畅游国内"
            ],
            "storeLevel":5,
            "address":"芳星园一区15号方庄市场一层底商A1015号",
            "sortIndex":641,
            "isDestinationStore":0,
            "telephone":"4008663333,0715018",
            "storeId":23,
            "serviceTime":[
                {
                    "timeEnd":"19:30:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":561.5,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/0301a1200086zdpdu7779_C_100_100.png",
            "cityName":"北京",
            "areaName":"丰台区",
            "storeName":"北京丰台区方庄店",
            "storeTDSId":"20039"
        },
        {
            "storeTagList":[
                "澳洲专家",
                "欧洲专家",
                "日韩专家",
                "东南亚"
            ],
            "storeLevel":5,
            "address":"成府路28号-1层-101室25号",
            "sortIndex":636,
            "isDestinationStore":0,
            "telephone":"4008663333,0715908",
            "storeId":975,
            "serviceTime":[
                {
                    "timeEnd":"20:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"10:00:00"
                }
            ],
            "sortScore":555.4,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300m0y000000lwbe1B85C_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"海淀区",
            "storeName":"北京海淀区五道口店",
            "storeTDSId":"31192"
        },
        {
            "storeTagList":[
                "畅游欧洲",
                "日韩专家",
                "东南亚",
                "畅游国内"
            ],
            "storeLevel":4,
            "address":"东高地六营门梅源小区44号楼108-2-2室",
            "sortIndex":636,
            "isDestinationStore":0,
            "telephone":"4008663333,0715175",
            "storeId":185,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":543.7,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300i0o000000fdza1EF5A_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"丰台区",
            "storeName":"北京丰台区东高地店",
            "storeTDSId":"19311"
        },
        {
            "storeTagList":[
                "人气推荐",
                "定制专家",
                "美洲专家",
                "畅游欧洲"
            ],
            "storeLevel":5,
            "address":"经济技术开发区荣华中路8号院7号楼2层202",
            "sortIndex":567,
            "isDestinationStore":0,
            "telephone":"4008663333,0715069",
            "storeId":75,
            "serviceTime":[
                {
                    "timeEnd":"19:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":504.2,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/030151200084yn4or7A48_C_100_100.png",
            "cityName":"北京",
            "areaName":"大兴区",
            "storeName":"北京大兴区亦庄店",
            "storeTDSId":"21261"
        },
        {
            "storeTagList":[
                "定制专家",
                "畅游日韩",
                "畅游国内"
            ],
            "storeLevel":4,
            "address":"北京市东城区王府井大街99号5层A503",
            "sortIndex":502,
            "isDestinationStore":0,
            "telephone":"4008663333,0716226",
            "storeId":1294,
            "serviceTime":[
                {
                    "timeEnd":"17:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":435.9,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300k11000000rcsdx4BFB_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"东城区",
            "storeName":"北京东城区灯市口店",
            "storeTDSId":"32866"
        },
        {
            "storeTagList":[
                "畅游欧洲",
                "畅游日韩",
                "东南亚",
                "畅游国内"
            ],
            "storeLevel":5,
            "address":"广华居十四号楼底商101号",
            "sortIndex":470,
            "isDestinationStore":0,
            "telephone":"4008663333,0715073",
            "storeId":79,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":422.7,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300w0m000000dorm4D986_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"朝阳区",
            "storeName":"北京朝阳北苑东路店",
            "storeTDSId":"21450"
        },
        {
            "storeTagList":[
                "东南亚",
                "畅游国内"
            ],
            "storeLevel":4,
            "address":"朝阳区八里庄北里118号楼底商1019",
            "sortIndex":478,
            "isDestinationStore":0,
            "telephone":"4008663333,0716525",
            "storeId":1595,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":416.3,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300515000000xvj9k8916_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"朝阳区",
            "storeName":"北京朝阳区石佛营店",
            "storeTDSId":"34435"
        },
        {
            "storeTagList":[
                "畅游美洲",
                "畅游日韩",
                "畅游国内"
            ],
            "storeLevel":6,
            "address":"新华西街58号院4号楼西门金街B区外街B2-136",
            "sortIndex":444,
            "isDestinationStore":0,
            "telephone":"4008663333,0715015",
            "storeId":20,
            "serviceTime":[
                {
                    "timeEnd":"19:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":413.4,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/0302n120006kzgczd42B3_C_100_100.png",
            "cityName":"北京",
            "areaName":"通州区",
            "storeName":"北京通州区北苑店",
            "storeTDSId":"19200"
        },
        {
            "storeTagList":[
                "定制专家",
                "东南亚"
            ],
            "storeLevel":3,
            "address":"梨园镇华业东方玫瑰D9113一层",
            "sortIndex":506,
            "isDestinationStore":0,
            "telephone":"4008663333,0715024",
            "storeId":29,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":406.6,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300f0l000000d6b7f1411_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"通州区",
            "storeName":"北京通州区临河里店",
            "storeTDSId":"20235"
        },
        {
            "storeTagList":[
                "畅游美洲",
                "畅游欧洲"
            ],
            "storeLevel":3,
            "address":"房山区楸树家园拱辰街道53号",
            "sortIndex":499,
            "isDestinationStore":0,
            "telephone":"4008663333,0716362",
            "storeId":1431,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":401.2,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300m13000000vmtm928DF_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"房山区",
            "storeName":"北京房山区昊天广场店",
            "storeTDSId":"34040"
        },
        {
            "storeTagList":[
                "畅游欧洲",
                "日韩专家",
                "畅游国内"
            ],
            "storeLevel":5,
            "address":"八里庄北里小区5号楼底商一层1008号",
            "sortIndex":433,
            "isDestinationStore":0,
            "telephone":"4008663333,0715870",
            "storeId":936,
            "serviceTime":[
                {
                    "timeEnd":"20:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"10:00:00"
                }
            ],
            "sortScore":392.3,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300s0x000000lfxvwDFEA_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"海淀区",
            "storeName":"北京海淀区慈寿寺店",
            "storeTDSId":"27734"
        },
        {
            "storeTagList":[
                "澳洲专家",
                "日韩专家",
                "东南亚"
            ],
            "storeLevel":5,
            "address":"水碓子东里24号楼一层104",
            "sortIndex":401,
            "isDestinationStore":0,
            "telephone":"4008663333,0715010",
            "storeId":15,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":368.4,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/0301f120007hqgixkC3B4_C_100_100.png",
            "cityName":"北京",
            "areaName":"朝阳区",
            "storeName":"北京朝阳区金台路店",
            "storeTDSId":"19493"
        },
        {
            "storeTagList":[
                "澳洲专家",
                "美洲专家",
                "畅游欧洲",
                "畅游国内"
            ],
            "storeLevel":3,
            "address":"田村路43号环京现代物流设施项目一段二层A-2F-027",
            "sortIndex":406,
            "isDestinationStore":0,
            "telephone":"4008663333,0716641",
            "storeId":1711,
            "serviceTime":[
                {
                    "timeEnd":"19:30:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:30:00"
                }
            ],
            "sortScore":325.5,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300g16000000zxoie34AA_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"海淀区",
            "storeName":"北京海淀区田村店",
            "storeTDSId":"37941"
        },
        {
            "storeTagList":[
                "美洲专家",
                "畅游日韩"
            ],
            "storeLevel":3,
            "address":"望京西园A3区316楼底商一层",
            "sortIndex":349,
            "isDestinationStore":0,
            "telephone":"4008663333,0715075",
            "storeId":81,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":281.7,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300m0r000000h4w71592D_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"朝阳区",
            "storeName":"北京朝阳区望京街店",
            "storeTDSId":"19199"
        },
        {
            "storeTagList":[
                "定制专家",
                "开业优惠",
                "畅游国内"
            ],
            "storeLevel":3,
            "address":"西环路29-10",
            "sortIndex":332,
            "isDestinationStore":0,
            "telephone":"4008663333,0717085",
            "storeId":2156,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":265.8,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300u1b000001auz37B3FE_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"昌平区",
            "storeName":"北京昌平区西环路店",
            "storeTDSId":"39923"
        },
        {
            "storeTagList":[
                "畅游美洲",
                "东南亚",
                "畅游国内"
            ],
            "storeLevel":2,
            "address":"延庆区高塔路9号",
            "sortIndex":176,
            "isDestinationStore":0,
            "telephone":"4008663333,0716363",
            "storeId":1432,
            "serviceTime":[
                {
                    "timeEnd":"19:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":141.3,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300t13000000vdhqm120C_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"延庆区",
            "storeName":"北京延庆县高塔路店",
            "storeTDSId":"33367"
        },
        {
            "storeTagList":[
                "定制专家"
            ],
            "storeLevel":3,
            "address":"北京市昌平区东小口镇天通西苑25号楼8门",
            "sortIndex":159,
            "isDestinationStore":0,
            "telephone":"4008663333,0715430",
            "storeId":454,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":129.3,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/30030t000000in77e088B_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"昌平区",
            "storeName":"北京昌平区天通苑店",
            "storeTDSId":"24738"
        },
        {
            "storeTagList":[
                "畅游欧洲",
                "畅游日韩",
                "东南亚"
            ],
            "storeLevel":3,
            "address":"和敬路4号院19楼1层19-9",
            "sortIndex":77,
            "isDestinationStore":0,
            "telephone":"4008663333,0715068",
            "storeId":74,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":63.1,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/300t0m000000dm7wuCAD3_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"朝阳区",
            "storeName":"北京朝阳区东坝店",
            "storeTDSId":"19456"
        },
        {
            "storeTagList":[
                "免费茶水"
            ],
            "storeLevel":1,
            "address":"宾阳西里C区32#住宅楼等9项第29幢4号（一层）",
            "sortIndex":0,
            "isDestinationStore":0,
            "telephone":"4008663333,739879",
            "storeId":2361,
            "serviceTime":[
                {
                    "timeEnd":"21:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                },
                {
                    "timeEnd":"21:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":0.2,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/0306l120008n740ur8F23_C_100_100.png",
            "cityName":"北京",
            "areaName":"密云区",
            "storeName":"北京密云区宾阳西里店",
            "storeTDSId":"49033"
        },
        {
            "storeTagList":[
                "免费茶水",
                "2022Trip优秀门店"
            ],
            "storeLevel":1,
            "address":"梨园镇翠屏北里东区202号楼底商11号",
            "sortIndex":0,
            "isDestinationStore":0,
            "telephone":"4008663333,741861",
            "storeId":26987,
            "serviceTime":[
                {
                    "timeEnd":"21:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        0,
                        0
                    ],
                    "timeStart":"09:30:00"
                },
                {
                    "timeEnd":"21:30:00",
                    "dayOfWeek":[
                        0,
                        0,
                        0,
                        0,
                        0,
                        1,
                        1
                    ],
                    "timeStart":"10:00:00"
                }
            ],
            "sortScore":0.2,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/0300y120008thbifh23E6_C_100_100.png",
            "cityName":"北京",
            "areaName":"通州区",
            "storeName":"北京通州区怡乐北街店",
            "storeTDSId":"56295"
        },
        {
            "storeTagList":[
                "免费茶水"
            ],
            "storeLevel":1,
            "address":"群芳南街115号1-2层115号",
            "sortIndex":0,
            "isDestinationStore":0,
            "telephone":"4008663333,741979",
            "storeId":27105,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        0,
                        0
                    ],
                    "timeStart":"09:00:00"
                },
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        0,
                        0,
                        0,
                        0,
                        0,
                        1,
                        1
                    ],
                    "timeStart":"10:00:00"
                }
            ],
            "sortScore":0.2,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/030021200091xgyfiF3C4_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"通州区",
            "storeName":"北京通州区群芳南街店",
            "storeTDSId":"53255"
        },
        {
            "storeTagList":[

            ],
            "storeLevel":1,
            "address":"常营民族家园83号楼一层05号",
            "sortIndex":0,
            "isDestinationStore":0,
            "telephone":"4008663333,743195",
            "storeId":28331,
            "serviceTime":[
                {
                    "timeEnd":"19:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        0,
                        0
                    ],
                    "timeStart":"10:30:00"
                },
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        0,
                        0,
                        0,
                        0,
                        0,
                        1,
                        1
                    ],
                    "timeStart":"10:00:00"
                }
            ],
            "sortScore":0.2,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/03050120009i01hhrB53F_C_100_100.jpg",
            "cityName":"北京",
            "areaName":"朝阳区",
            "storeName":"北京携程朝阳区常营中路门市",
            "storeTDSId":"58528"
        },
        {
            "storeTagList":[
                "免费茶水"
            ],
            "storeLevel":2,
            "address":"鼓楼东街69号衡器厂底商一层携程旅游",
            "sortIndex":0,
            "isDestinationStore":0,
            "telephone":"4008663333,0726000",
            "storeId":2369,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":0.1,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/03071120008739ue31B12_C_100_100.png",
            "cityName":"北京",
            "areaName":"昌平区",
            "storeName":"北京昌平区鼓楼东街店",
            "storeTDSId":"21835"
        },
        {
            "storeTagList":[
                "免费茶水"
            ],
            "storeLevel":1,
            "address":"苏家坨镇北情路安河家园九里11号楼2层9-11-2-201-05",
            "sortIndex":0,
            "isDestinationStore":0,
            "telephone":"4008663333,741228",
            "storeId":26264,
            "serviceTime":[
                {
                    "timeEnd":"18:00:00",
                    "dayOfWeek":[
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                    ],
                    "timeStart":"09:00:00"
                }
            ],
            "sortScore":0,
            "isLoginUserFavorite":false,
            "imgUrl":"https://dimg04.c-ctrip.com/images/0306p120008q4daijF5A0_C_100_100.png",
            "cityName":"北京",
            "areaName":"海淀区",
            "storeName":"北京海淀区北清路店",
            "storeTDSId":"55503"
        }
    ],
    "totalCount":35
}
     */


    @Data
    public static class Store {

        @ApiModelProperty(value = "总数")
        private String totalCount;

        @ApiModelProperty(value = "店铺名称")
        private String storeName;

        @ApiModelProperty(value = "城市名称")
        private String cityName;

        @ApiModelProperty(value = "城市区域")
        private String areaName;

        @ApiModelProperty(value = "店铺地址")
        private String address;

        @ApiModelProperty(value = "联系方式")
        private String telephone;
    }

    @ApiOperation(value = "获取门店")
    @GetMapping(value = "/store", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
    public void get(
            @ApiParam(value = "城市编码", required = true) @RequestParam(value = "city") List<String> city
    ) {
        String url = "https://m.ctrip.com/restapi/soa2/13642/crmStoreGetStoreListByLbs?_fxpcqlniredt=12001094210305110202";
        JSONObject jsonBody = new JSONObject();
        jsonBody.put("pageIndex", 0);
        List<Store> storeList = new ArrayList<>();
        for (String temp : city) {
            jsonBody.put("pageSize", 1);
            jsonBody.put("cityId", temp);
            // 先获取总条数
            HttpResponse pageResponse = HttpRequest
                    .post(url)
                    .body(jsonBody.toJSONString())
                    .execute();
            JSONObject jsonPageResponse = JSONObject.parseObject(pageResponse.body());
            if (ObjectUtil.isEmpty(jsonPageResponse)) {
                continue;
            }
            // 总条数
            Integer totalCount = jsonPageResponse.getInteger("totalCount");
            if (ObjectUtil.isEmpty(totalCount) || totalCount <= 0) {
                continue;
            }
            // 然后在一次性查出
            jsonBody.put("pageSize", totalCount);
            HttpResponse response = HttpRequest
                    .post(url)
                    .body(jsonBody.toJSONString())
                    .execute();
            JSONObject jsonResponse = JSONObject.parseObject(response.body());
            storeList.addAll(analysisStoreResponse(jsonResponse));
        }
        SmallExcelUtil.writerOnApiModelProperty(Store.class, storeList);
    }

    /**
     * 解析返回体
     *
     * @param jsonResponse
     * @return
     */
    private List<Store> analysisStoreResponse(JSONObject jsonResponse) {
        if (ObjectUtil.isEmpty(jsonResponse)) {
            return Collections.emptyList();
        }
        List<Store> storeList = new ArrayList<>();
        // 门店总数
        Integer totalCount = jsonResponse.getInteger("totalCount");
        // 默认门店
        JSONObject jsonDefaultStore = jsonResponse.getJSONObject("defaultStore");
        if (ObjectUtil.isNotEmpty(jsonDefaultStore)) {
            String defaultCityName = jsonDefaultStore.getString("cityName");
            String defaultAreaName = jsonDefaultStore.getString("areaName");
            String defaultAddress = jsonDefaultStore.getString("address");
            String defaultTelephone = jsonDefaultStore.getString("telephone");
            String defaultStoreName = jsonDefaultStore.getString("storeName");

            Store defaultStore = new Store();
            defaultStore.setTotalCount(totalCount.toString());
            defaultStore.setCityName(defaultCityName);
            defaultStore.setAreaName(defaultAreaName);
            defaultStore.setAddress(defaultAddress);
            defaultStore.setTelephone(defaultTelephone);
            defaultStore.setStoreName(defaultStoreName);
            storeList.add(defaultStore);
        }
        // 剩余门店
        JSONArray jsonStoreList = jsonResponse.getJSONArray("storeList");
        if (ObjectUtil.isNotEmpty(jsonStoreList)) {
            for (int i = 0; i < jsonStoreList.size(); i++) {
                JSONObject jsonStore = jsonStoreList.getJSONObject(i);
                String cityName = jsonStore.getString("cityName");
                String areaName = jsonStore.getString("areaName");
                String address = jsonStore.getString("address");
                String telephone = jsonStore.getString("telephone");
                String storeName = jsonStore.getString("storeName");

                Store store = new Store();
                store.setTotalCount(totalCount.toString());
                store.setCityName(cityName);
                store.setAreaName(areaName);
                store.setAddress(address);
                store.setTelephone(telephone);
                store.setStoreName(storeName);
                storeList.add(store);
            }
        }
        return storeList;
    }

}

